<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .box{
            perspective: 5000px;
            /* transform-style: preserve-3d; */
        }
    .show{
        /* perspective: 5000px; */
        position: relative;
        width: 400px;
        height: 300px;
        margin: 100px auto;
        animation: move 12s linear infinite ;
        transform-style: preserve-3d;
    }
    .show img{
        position: absolute;
        width: 400px;
        height: 300px;
        left: 0;
        top: 0;
    }
    @keyframes move {
        0%{
            transform: rotateY(0deg)
        }
        100%{
            transform: rotateY(360deg)
        }
    }
    .img1{
        transform: translateZ(500px);
    }
    .img2{
        transform: rotateY(60deg) translateZ(500px);
    }
    .img3{
        transform: rotateY(120deg) translateZ(500px);
    }
    .img4{
        transform: rotateY(180deg) translateZ(500px);
    }
    .img5{
        transform: rotateY(240deg) translateZ(500px);
    }
    .img6{
        transform: rotateY(300deg)translateZ(500px);
    }
    .img7{
        transform: rotateY(0) translateZ( 0px);
    }
    </style>
</head>
<body>
    <div class="box">
        <div class="show">
            <img src="images/dog.gif" alt="" class="img1">
            <img src="images/dog.gif" alt="" class="img2">
            <img src="images/dog.gif" alt="" class="img3">
            <img src="images/dog.gif" alt="" class="img4">
            <img src="images/dog.gif" alt="" class="img5">
            <img src="images/dog.gif" alt="" class="img6">
            <img src="images/dog2.jpg" alt="" class="img7">
        </div>
    </div>
</body>
</html>